// vite.config.js
import {
	defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import {
	resolve
} from 'path'

export default defineConfig({
	plugins: [uni()],
	resolve: {
		alias: {
			'@': resolve(__dirname, 'src'),
			// 或者直接指向项目根目录
			'@components': resolve(__dirname, './components'),
			'@pages': resolve(__dirname, './pages'),
			'@utils': resolve(__dirname, './utils')
		}
	}
})